#include "e2d/yml/render/Serializer.h"

using Serializer = e2d::BasicSerializer;

template<>
 void Serializer::Encode<e2d::ImageQuad>(YAML::Node& node, const e2d::ImageQuad& inst)
{
	Encode<e2d::Object>(node, inst);
	SetVariable<e2d::Texture2DMap>(node, "m_Texture", inst.m_Texture);

}


template<>
 bool Serializer::Decode<e2d::ImageQuad>(const YAML::Node& node, e2d::ImageQuad& inst)
{
	Decode<e2d::Object>(node, inst);
	GetVariable<e2d::Texture2DMap>(node, "m_Texture", inst.m_Texture);

	return true;
}
